﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SearchPlugin
{
    public class CMSSearchResult : IComparable<CMSSearchResult>
    {
        long cid;
        Int32 value;
        public CMSSearchResult(long cont, Int32 rank)
        {
            value = rank;
            cid = cont;
        }

        public int CompareTo(CMSSearchResult other)
        {
            if (other.value > this.value)
            {
                return -1;
            }
            if (other.value < this.value)
            {
                return 1;
            }
            return 0;
        }
    }
}
